package it.traveldream.entities;

import it.traveldreamClient.beans.dto.ComponenteDTO;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;

@Entity
@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)
public class Componente extends ProdottoAcquistabile implements Serializable {
	
	
	
	
	
	private static final long serialVersionUID = 1L;
	private boolean regalo;
    @Column(nullable = false)
	protected String nome;

   /* @ManyToMany(mappedBy="listaRegali",fetch=FetchType.EAGER)
    private List<User> listaUtenti;  
    
    
	public List<User> getListaUtenti() {
		return listaUtenti;
	}
	
	
	public void setListaUtenti(List<User> listaUtenti) {
		this.listaUtenti = listaUtenti;
	}
	*/
	public Componente(){
		super();
	}
	
	public Componente(Componente comp) {}
	
	public String getNome() {
		return nome;
	}
	public void setNome(String nome) {
		this.nome = nome;
	}
	
	public ComponenteDTO getDTO(){
		return null; 
	}

	public boolean isRegalo() {
		return regalo;
	}

	public void setRegalo(boolean regalo) {
		this.regalo = regalo;
	};

	
}
